package com.swift.core.constant;

/**
 * @author Ldanniel
 * @description :
 * @date 2022/07/10 11:12
 * @since open jdk 1.8
 */
public enum CommonEnum {
    SUCCESS("0","成功"),
    FAILURE("1","失败"),
    NO_TOKEN("2","token不存在"),
    UN_EXIPRED("2","token尚未过期"),
    NEW_TOKEN("3","原token已过期，重新生成新的token"),
    EXPIRED_TIME("1800000","token过期时间");
    private String  code;
    private String description;

    CommonEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}